package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.DeliveryAddressDao;
import com.ericom.model.DeliveryAddress;
@Repository("deliveryAddressDao")
public class DeliveryAddressDaoHibernate extends GenericDaoHibernate<DeliveryAddress, Long>
		implements DeliveryAddressDao {

	

	public DeliveryAddressDaoHibernate() {
		super(DeliveryAddress.class);
		
	}

	public List<DeliveryAddress> findByMemberId(Long memberId) {
		
		return this.getHibernateTemplate().find("from DeliveryAddress where member_id=?",memberId);
	}

}
